home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
GSAVE2.ZIP
/
PASCAL.ZIP
/
GSOBJ.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-12-03
|
1KB
|
82 lines
.model tpascal
.code
public setup_vga,load_screengs
proc setup_vga
mov ax,0013h
int 10h
ret
endp setup_vga
picture dw ?
file db 'SCREENGS.000',0
proc load_screengs
push cs
pop ds
push 0a000h
pop es
mov ax,4a00h
mov bx,1000h
int 21h
mov ax,4800h
mov bx,1000h
int 21h
mov picture,ax
mov ax,3d00h
lea dx,file
int 21h
jc error
mov bx,ax
mov ax,3f00h
mov cx,768
xor dx,dx
push ds picture
pop ds
int 21h
mov dx,3c8h
xor al,al
out dx,al
inc dx
mov cx,768
xor si,si
load_colors:
lodsb
out dx,al
loop load_colors
pop ds
mov ax,3f00h
mov cx,320*200
xor dx,dx
push ds picture
pop ds
int 21h
mov ax,3e00h
int 21h
xor si,si
xor di,di
mov cx,320*200
rep movsb
pop ds
push es
mov ax,picture
mov es,ax
mov ax,4900h
int 21h
pop es
error:
ret
endp load_screengs
end